<%= simple_form_for([:admin, @question], html: {class: 'form-horizontal form-show',id: 'question_form' }) do |f| %>
<%= f.error_notification %>

  <%= f.association :user %>
  <%= f.input :content %>
  <%= f.input :title %>
  <%= f.input :label %>
  <%= f.input :read_num %>

<div class="clearfix form-actions">
  <div class="col-md-offset-3 col-md-9">
    <%= f.button :submit, class: 'btn btn-primary' %>
  </div>
</div>
<% end %>

<script>
    $(function () {
        $('#question_form').validator_b3({
            errorElement: 'div',
            errorClass: 'help-block',
            focusInvalid: false,
            rules: {
            },
            messages: {
            }
        });


        $('.nav.nav-list li.active').removeClass('active');
        $('.nav.nav-list li[data-model="question_list"]').addClass('active');
    } );
</script>